<?php
	$name = array(
		'name'	=> 'name',
		'id'	=> 'name',
		'class'	=> 'input ui-corner-all',
		'value' => set_value('name'),
	);
	
	$description = array(
		'name'	=> 'description',
		'id'	=> 'description',
		'class'	=> 'input ui-corner-all',
		'style' => 'width: 300px; height: 30px;',
		'value' => set_value('description'),
	);
	
	$uris = array(
		'name'	=> 'uris',
		'id'	=> 'uris',
		'class'	=> 'input ui-corner-all',
		'style' => 'width: 300px; height: 150px;',
		'value' => set_value('uris'),
	);
?>
<div class="container_12" id="body">
	<div class="grid_12">
	<?php echo form_open_multipart('backend/group/create/', array('id' => 'form_group_create'));?>
		<div style="text-align: right;">
			<button id="btn_update">Lưu</button> 
			<?php echo anchor('backend/group', 'Hủy', 'class="button" id="btn_cancel"');?>
		</div>
		<?php if ($message): ?>
		<div style="margin: 20px auto; padding: 1em;" class="ui-state-highlight ui-corner-all"> 
			<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span>
			<strong>Hey!</strong> <?php echo $message; ?></p>
		</div>
		<div class="clear"></div>
		<?php endif;?>
		<div class="grid_6 alpha">
			<h4>Thông tin</h4>
			<div>
				<?php echo form_label('Tên nhóm', 'name', array('style' => 'width: 120px')); ?>
				<?php echo form_input($name); ?>
				<div class="clear"></div>
			</div>
			<div class="b20">
				<?php echo form_label('Mô tả', 'description', array('style' => 'width: 120px')); ?>
				<?php echo form_textarea($description); ?>
				<div class="clear"></div>
			</div>
			<div>
				<?php echo form_label('Phân quyền (URI Base)', 'uris', array('style' => 'width: 120px')); ?>
				<?php echo form_textarea($uris); ?>
				<div class="clear"></div>
			</div>
		</div>
		<div class="grid_6 omega">
			<h4>Hướng dẫn</h4>
			
		</div>
		<div class="clear"></div>
	<?php echo form_close();?>
	</div>
	<div class="clear"></div>
</div>
<script type="text/javascript"></script>